package com.bestcem.xm.txtanls.grpc.service.param.worktable;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/6/22 16:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ListWorktableParam {

    @NotBlank(message = "orgId不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "orgId格式错误")
    private String orgId;

    @NotBlank(message = "userId不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "userId格式错误")
    private String userId;
}
